package com.vcit.system.mapper.grade;

import com.vcit.system.domain.grade.TClazzTermCourse;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TClazzTermCourseMapper {
    TClazzTermCourse selectById(Long id);
    List<TClazzTermCourse> selectList(TClazzTermCourse query);
    int insert(TClazzTermCourse entity);
    int update(TClazzTermCourse entity);
    int deleteById(Long id);
    int deleteByIds(Long[] ids);
    int batchInsert(List<TClazzTermCourse> list);
    List<TClazzTermCourse> selectListWithNames(TClazzTermCourse query);
    TClazzTermCourse selectByIdWithNames(Long id);
    int batchUpdate(List<TClazzTermCourse> list);
    /**
     * 删除某班级某学期下所有课程分配
     */
    int deleteByClazzAndTerm(@Param("clazzId") Long clazzId, @Param("termId") Long termId);
} 